package com.qf.hospital.enums;

/**
 * @author Administrator
 * @version V1.0
 * @Project hospital
 * @Package com.qf.hospital.enums
 * @Description: ${TODO}
 * @Date 2021/10/15 15:32
 */
public enum HospitalErrorEnums {

    REPORT_ADD_ERROR(764,"添加患者失败！"),
    LOGIN_TIMEOUT(999,"登录超时"),
    USERNAME_PASSWORD_ERROR(666,"用户名或密码输入错误！"),
    REQUEST_PARAMETER_ERROR(400,"请求参数异常！"),
    USER_HAS_EXPIRED(888,"用户已经失效！"),
    USER_ADD_ERROR(777,"添加用户信息失败！"),
    USER_SAVE_ROLE_ERROR(778,"分配角色失败！"),
    USER_DELETE_ERROR(776,"删除用户失败！"),
    USER_UPDATE_ERROR(775,"密码修改失败！"),
    USER_UPDATE_ROLE_ERROR(774,"修改信息失败！"),
    ROLE_SAVE_ROLE_MENU_ERROR(788,"分配菜单失败！"),
    MENU_UPDATE_ERROR(787,"编辑菜单失败！"),
    MENU_DELETE_ERROR(789,"删除菜单失败！"),
    MENU_ADD_ERROR(788,"添加菜单失败!"),
    ROLE_ADD_ERROR(774,"添加角色失败！"),
    MEDICINE_DELETE_ERROR(670,"删除药品失败！");


    private Integer code;

    private String msg;

    HospitalErrorEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
